/**
 * Created by 二更 on 2017/3/13.
 */

function ball(){
	
	 	$('.mask_layer').height(document.body.scrollHeight+30);
	    $('.modal_box').css('display','block');
	    $(document.body).css({
	        "overflow-x":"hidden",
	        "overflow-y":"hidden"
	    });
	        
	    $('.close').on("touchend",function(e){
	    	 e.preventDefault();//在事件中使用preventDefault()阻止冒泡；
				 $('.modal_box').css('display','none');
				 $(document.body).css({
			            "overflow-x":"auto",
			            "overflow-y":"auto"
			     });
	    });
	    
	    $('.ok').on("touchend",function(e){
	    	e.preventDefault();//在事件中使用preventDefault()阻止冒泡；
	        	$('.modal_box').css('display','none');
	        	$(document.body).css({
		            "overflow-x":"auto",
		            "overflow-y":"auto"
		        });
	    })
}